home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / gyroball.swf / scripts / frame_8 / PlaceObject2_124_137 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2007-03-22  |  479 b   |  23 lines

  1. onClipEvent(enterFrame){
  2.    if(hit.hitTest(_root.Ball._x,_root.Ball._y,true) == true)
  3.    {
  4.       _root.platten();
  5.       if(this._x < _root.ball._x)
  6.       {
  7.          _root.ball.xmove += 0.2;
  8.       }
  9.       if(_root.ball._x < this._x)
  10.       {
  11.          _root.ball.xmove -= 0.2;
  12.       }
  13.       if(this._y < _root.ball._y)
  14.       {
  15.          _root.ball.ymove += 0.2;
  16.       }
  17.       if(_root.ball._y < this._y)
  18.       {
  19.          _root.ball.ymove -= 0.2;
  20.       }
  21.    }
  22. }
  23.